<template>
	<view class="start_box">
		<image src="https://imgs.ynz666.com/test/2025/01/08/MmVlZjIxOTBmZmY5ZDY2MDVkNmRiMDE2NTNhNTY3OTU=.png" @load='loadimg' class="start_img1" mode="widthFix"></image>
	</view>
</template>

<script>
	var app = getApp();
	export default {
		data() {
			return {
				current:0,
				img:[
					'https://hesen-gfn-public.oss-cn-shenzhen.aliyuncs.com/default/start/start1.png',
					'https://hesen-gfn-public.oss-cn-shenzhen.aliyuncs.com/default/start/start1.png',
				],
				startflag:true
			}
		},
		onShow() {
			if(uni.getStorageSync('accessToken')){
				this.startflag = false;
			}else{
				this.startflag = true;
			}
		},
		methods: {
			jumpindex(){
				uni.switchTab({
					url:'/pages/index/index'
				})
			},
			loadimg(e){
				setTimeout(function(){
					uni.switchTab({
						url:'../index/index'
					})
				},3000)
			},
		}
	}
</script>

<style lang="scss" scoped>
	image {
		display:  block;
	}
	.start_box {
		position: relative;
		
	}
	
	.dots-box {
		display: flex;justify-content: center;
		position: absolute;
		left: 50%;
		bottom: 200rpx;
		margin-left: -96rpx;
		z-index: 1;
		
		.dots {
			width: 40rpx;
			height: 16rpx;
			background-color: #d8d8d8;
			margin: 0 4rpx;
			border-radius: 40rpx;
		}
		.dots-active {
			background: #FA6400;
			width: 80rpx;
			height: 16rpx;
		}
	}
.start_img1 {
	// width: 400rpx;
	// height: 367rpx;
	width: 100vw;
	margin: 0 auto;
}
swiper {
	width: 100vw;
	height: 1440rpx;
}
swiper-item {
	width: 100%;
	height: 100%;
	image {
		display: block;
		width: 100%;
		height: 100%;
	}
}
.start_img2 {
	width: 260rpx;
	height: 49rpx;
	margin: 0 auto;
	margin-top: 47rpx;
	
}
.start_text {
	font-size: 28rpx;
	margin-top: 10rpx;
	text-align: center;
	color: #272528;
	line-height: 40px;
}
.right-btn {
	width: 500rpx;
	height: 100rpx;
	background: #FFCC1A;
	border-radius: 60rpx;
	
	position: fixed;
	bottom: 150rpx;
	left: 50%;
	margin-left: -250rpx;
	
	font-size: 32rpx;
	text-align: center;
	font-weight: bold;
	color: #000000;
	line-height: 100rpx;
}
</style>
